package org.zoomdev.zoom.rpc.server;

import org.zoomdev.zoom.rpc.utils.MessageDecoder;

public class RpcServerBytesToMessageDecoder extends MessageDecoder {

    @Override
    protected Object createObject(int id, short func, byte[] bytes) {
        Command command = new Command();
        command.func = func;
        command.bytes = bytes;
        command.id = id;
        return command;
    }
}
